package com.hx.vending.dao;

import com.hx.vending.bean.ModelTrails;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2018/11/26.
 * 模板关联
 */
@Repository
public interface ModelTrailsMapper {

    int deleteByPrimaryKey(Integer modelTrailsId);

    int insertSelective(ModelTrails record);

    ModelTrails selectByPrimaryKeySelective(ModelTrails record);

    List<ModelTrails> selectByExampleSelective(ModelTrails record);

    int updateByPrimaryKeySelective(ModelTrails record);

    int deleteByRiseIdAndModelId(@Param("modelId")Integer modelId,@Param("riseId")Integer riseId);

    int deleteByTrailsId(@Param("trailsId")Integer trailsId);

}
